import request from '@/utils/request'

// 查询待分单订单列表
export function listZcsplitorder(query) {
  return request({
    url: '/zhongchuangauto/zcsplitorder/list',
    method: 'get',
    params: query
  })
}

// 查询待分单订单详细
export function getZcsplitorder(orderId) {
  return request({
    url: '/zhongchuangauto/zcsplitorder/' + orderId,
    method: 'get'
  })
}

// 新增待分单订单
export function addZcsplitorder(data) {
  return request({
    url: '/zhongchuangauto/zcsplitorder',
    method: 'post',
    data: data
  })
}

// 修改待分单订单
export function updateZcsplitorder(data) {
  return request({
    url: '/zhongchuangauto/zcsplitorder',
    method: 'put',
    data: data
  })
}

// 删除待分单订单
export function delZcsplitorder(orderId) {
  return request({
    url: '/zhongchuangauto/zcsplitorder/' + orderId,
    method: 'delete'
  })
}

//上传分单信息

export function uploadZcsplit(data) {
  return request({
    url: '/zhongchuangauto/zcsplitorder/uploadZcsplit',
    method: 'post',
    data: data
  })
}

